home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 160 - Disc 2 / MF_UK_160_2.iso / pc / DiscContent / Trials / oxygen / samples / fo / Basic Font Attributes / bold.fo next >
Encoding:
Extensible Markup Language  |  2005-07-21  |  9.7 KB  |  262 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?><!--
  2.     (c) RenderX, 2000
  3.     This file makes part of the RenderX XSL FO Test Suite. Permission is
  4.     granted to copy and modify this file as a whole or in part, provided
  5.     that any work derived from it bear a reference to the original
  6.     document.
  7.   -->
  8. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xep="http://www.renderx.com/XEP/xep" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  9.    <fo:layout-master-set>
  10.       <fo:simple-page-master master-name="all-pages">
  11.          <fo:region-body region-name="xsl-region-body" margin="0.7in" column-gap="0.25in" border="0.25pt solid gray" padding="6pt"/>
  12.          <fo:region-before region-name="xsl-region-before" extent="0.7in" display-align="after" padding="6pt 0.7in"/>
  13.          <fo:region-after region-name="xsl-region-after" extent="0.7in" display-align="before" padding="6pt 0.7in"/>
  14.       </fo:simple-page-master>
  15.    </fo:layout-master-set>
  16.    <fo:page-sequence master-reference="all-pages">
  17.       <fo:static-content flow-name="xsl-region-before">
  18.          <fo:list-block font="10pt Helvetica" provisional-distance-between-starts="5in" provisional-label-separation="0in">
  19.             <fo:list-item>
  20.                <fo:list-item-label end-indent="label-end()">
  21.                   <fo:block text-align="start" font-weight="bold"> Basic Font Attributes - Font Weight </fo:block>
  22.                </fo:list-item-label>
  23.                <fo:list-item-body start-indent="body-start()">
  24.                   <fo:block text-align="end">
  25.                 Page <fo:page-number/>
  26.                   </fo:block>
  27.                </fo:list-item-body>
  28.             </fo:list-item>
  29.          </fo:list-block>
  30.       </fo:static-content>
  31.       <fo:static-content flow-name="xsl-region-after">
  32.          <fo:list-block font="9pt Times" provisional-distance-between-starts="3in" provisional-label-separation="0in">
  33.             <fo:list-item>
  34.                <fo:list-item-label end-indent="label-end()">
  35.                   <fo:block text-align="start" font-weight="bold">© <fo:basic-link external-destination="url(http://www.renderx.com/)" color="#0000C0" text-decoration="underline">Render<fo:wrapper font-weight="bold" color="#C00000">X</fo:wrapper>
  36.                      </fo:basic-link> 2000</fo:block>
  37.                </fo:list-item-label>
  38.                <fo:list-item-body start-indent="body-start()">
  39.                   <fo:block text-align="end" font-style="italic" color="#606060">
  40.                 XSL Formatting Objects Test Suite
  41.               </fo:block>
  42.                </fo:list-item-body>
  43.             </fo:list-item>
  44.          </fo:list-block>
  45.       </fo:static-content>
  46.       <fo:static-content flow-name="xsl-footnote-separator">
  47.          <fo:block>
  48.             <fo:leader leader-pattern="rule" leader-length="100%" rule-thickness="0.5pt" rule-style="solid" color="black"/>
  49.          </fo:block>
  50.       </fo:static-content>
  51.       <fo:flow flow-name="xsl-region-body">
  52.          <fo:block>
  53.  
  54.    
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.             <fo:block font="bold 14pt Helvetica" color="black" space-before="18pt" space-before.conditionality="discard" space-after="6pt" keep-with-next.within-column="always" keep-together.within-column="always" text-align="center" padding="3pt" background-color="silver"> Basic Font Attributes - Font Weight </fo:block>
  79.  
  80.  
  81.             <fo:block font="12pt Times" space-before="6pt" space-after="6pt"> This test contains examples of different font weights. 
  82.   It is conceived as an exhaustive test of all ways 
  83.   of expressing font weight in XSL.
  84. </fo:block>
  85.  
  86.  
  87.   
  88.             <fo:block text-align="start" font-family="Helvetica">
  89.     
  90.                <fo:block space-before.optimum="24pt" keep-with-next.within-column="always">
  91.                   <fo:wrapper text-decoration="underline">
  92.                      <fo:wrapper font-weight="bold">Helvetica:</fo:wrapper>
  93.                   </fo:wrapper>
  94.                </fo:block>
  95.       
  96.   
  97.                <fo:block font-weight="normal" space-before="6pt"> 
  98.       Default is normal:
  99.       <fo:wrapper font-weight="700">bold (weight=700)</fo:wrapper>
  100.       - normal -
  101.       <fo:wrapper font-weight="bold">bold (weight=bold)</fo:wrapper>
  102.       - normal -
  103.       <fo:wrapper font-weight="bolder">bold (weight=bolder)</fo:wrapper>
  104.       - normal.
  105.   </fo:block>
  106.  
  107.       
  108.   
  109.                <fo:block font-weight="bold" space-before="6pt"> 
  110.       Default is bold:
  111.       <fo:wrapper font-weight="400">normal (weight=400)</fo:wrapper>
  112.       - bold -
  113.       <fo:wrapper font-weight="normal">normal (weight=normal)</fo:wrapper>
  114.       - bold -
  115.       <fo:wrapper font-weight="lighter">normal (weight=lighter)</fo:wrapper>
  116.       - bold.
  117.   </fo:block>
  118.  
  119.       
  120.   
  121.                <fo:block font-weight="normal" space-before="6pt"> 
  122.       Font weight progression:
  123.       <fo:wrapper font-weight="100">100 (extra light)</fo:wrapper> -
  124.       <fo:wrapper font-weight="200">200</fo:wrapper> - 
  125.       <fo:wrapper font-weight="300">300</fo:wrapper> - 
  126.       <fo:wrapper font-weight="400">400 (normal)</fo:wrapper> - 
  127.       <fo:wrapper font-weight="500">500</fo:wrapper> - 
  128.       <fo:wrapper font-weight="600">600</fo:wrapper> - 
  129.       <fo:wrapper font-weight="700">700 (bold)</fo:wrapper> - 
  130.       <fo:wrapper font-weight="800">800</fo:wrapper> - 
  131.       <fo:wrapper font-weight="900">900 (extra bold)</fo:wrapper>
  132.   
  133.                </fo:block>
  134.  
  135.   
  136.             </fo:block>
  137.  
  138.  
  139.   
  140.             <fo:block text-align="start" font-family="Times">
  141.     
  142.                <fo:block space-before.optimum="24pt" keep-with-next.within-column="always">
  143.                   <fo:wrapper text-decoration="underline">
  144.                      <fo:wrapper font-weight="bold">Times:</fo:wrapper>
  145.                   </fo:wrapper>
  146.                </fo:block>
  147.       
  148.   
  149.                <fo:block font-weight="normal" space-before="6pt"> 
  150.       Default is normal:
  151.       <fo:wrapper font-weight="700">bold (weight=700)</fo:wrapper>
  152.       - normal -
  153.       <fo:wrapper font-weight="bold">bold (weight=bold)</fo:wrapper>
  154.       - normal -
  155.       <fo:wrapper font-weight="bolder">bold (weight=bolder)</fo:wrapper>
  156.       - normal.
  157.   </fo:block>
  158.  
  159.       
  160.   
  161.                <fo:block font-weight="bold" space-before="6pt"> 
  162.       Default is bold:
  163.       <fo:wrapper font-weight="400">normal (weight=400)</fo:wrapper>
  164.       - bold -
  165.       <fo:wrapper font-weight="normal">normal (weight=normal)</fo:wrapper>
  166.       - bold -
  167.       <fo:wrapper font-weight="lighter">normal (weight=lighter)</fo:wrapper>
  168.       - bold.
  169.   </fo:block>
  170.  
  171.       
  172.   
  173.                <fo:block font-weight="normal" space-before="6pt"> 
  174.       Font weight progression:
  175.       <fo:wrapper font-weight="100">100 (extra light)</fo:wrapper> -
  176.       <fo:wrapper font-weight="200">200</fo:wrapper> - 
  177.       <fo:wrapper font-weight="300">300</fo:wrapper> - 
  178.       <fo:wrapper font-weight="400">400 (normal)</fo:wrapper> - 
  179.       <fo:wrapper font-weight="500">500</fo:wrapper> - 
  180.       <fo:wrapper font-weight="600">600</fo:wrapper> - 
  181.       <fo:wrapper font-weight="700">700 (bold)</fo:wrapper> - 
  182.       <fo:wrapper font-weight="800">800</fo:wrapper> - 
  183.       <fo:wrapper font-weight="900">900 (extra bold)</fo:wrapper>
  184.   
  185.                </fo:block>
  186.  
  187.   
  188.             </fo:block>
  189.  
  190.  
  191.   
  192.             <fo:block text-align="start" font-family="Courier">
  193.     
  194.                <fo:block space-before.optimum="24pt" keep-with-next.within-column="always">
  195.                   <fo:wrapper text-decoration="underline">
  196.                      <fo:wrapper font-weight="bold">Courier:</fo:wrapper>
  197.                   </fo:wrapper>
  198.                </fo:block>
  199.       
  200.   
  201.                <fo:block font-weight="normal" space-before="6pt"> 
  202.       Default is normal:
  203.       <fo:wrapper font-weight="700">bold (weight=700)</fo:wrapper>
  204.       - normal -
  205.       <fo:wrapper font-weight="bold">bold (weight=bold)</fo:wrapper>
  206.       - normal -
  207.       <fo:wrapper font-weight="bolder">bold (weight=bolder)</fo:wrapper>
  208.       - normal.
  209.   </fo:block>
  210.  
  211.       
  212.   
  213.                <fo:block font-weight="bold" space-before="6pt"> 
  214.       Default is bold:
  215.       <fo:wrapper font-weight="400">normal (weight=400)</fo:wrapper>
  216.       - bold -
  217.       <fo:wrapper font-weight="normal">normal (weight=normal)</fo:wrapper>
  218.       - bold -
  219.       <fo:wrapper font-weight="lighter">normal (weight=lighter)</fo:wrapper>
  220.       - bold.
  221.   </fo:block>
  222.  
  223.       
  224.   
  225.                <fo:block font-weight="normal" space-before="6pt"> 
  226.       Font weight progression:
  227.       <fo:wrapper font-weight="100">100 (extra light)</fo:wrapper> -
  228.       <fo:wrapper font-weight="200">200</fo:wrapper> - 
  229.       <fo:wrapper font-weight="300">300</fo:wrapper> - 
  230.       <fo:wrapper font-weight="400">400 (normal)</fo:wrapper> - 
  231.       <fo:wrapper font-weight="500">500</fo:wrapper> - 
  232.       <fo:wrapper font-weight="600">600</fo:wrapper> - 
  233.       <fo:wrapper font-weight="700">700 (bold)</fo:wrapper> - 
  234.       <fo:wrapper font-weight="800">800</fo:wrapper> - 
  235.       <fo:wrapper font-weight="900">900 (extra bold)</fo:wrapper>
  236.   
  237.                </fo:block>
  238.  
  239.   
  240.             </fo:block>
  241.  
  242.  
  243.  
  244.             <fo:block font="12pt Times" space-before="6pt" space-after="6pt" border="thin solid black" text-align="justify" padding="3pt">
  245.                <fo:wrapper font-weight="bold" color="red" keep-with-next.within-line="always">
  246.       WARNING:
  247.     </fo:wrapper>
  248.   Please note that in the font weight progressions above,
  249.   we do not expect to have all weights different;
  250.   it depends on the availability of weight variants
  251.   for the specific font. Unless your renderer can provide
  252.   for automatic font thickening, you will see only two weight
  253.   grades: typically, all weights greater then 500 will be displayed 
  254.   as bold typeface, and all smaller weights will appear as normal. 
  255.   Such behaviour <fo:wrapper font-weight="bold">is not an error</fo:wrapper>.
  256. </fo:block>
  257.  
  258.  
  259.          </fo:block>
  260.       </fo:flow>
  261.    </fo:page-sequence>
  262. </fo:root>